package com.china08.yxyapi.repository.mg.huixue;

import java.util.List;

import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.huixue.YxyHuixuePlanQues;

public interface YxyHuixuePlanQuesRepository extends MongoRepository<YxyHuixuePlanQues, String> {

    Long countByStudentIdAndPlanId(String studentId, String planId);

    List<YxyHuixuePlanQues> findByStudentIdAndPlanIdAndKnowIdAndWeight(String studentId, String planId, String knowId,
            Integer weight);

    List<YxyHuixuePlanQues> findByStudentIdAndPlanIdAndKnowId(String studentId, String planId, String knowId);

    YxyHuixuePlanQues findByStudentIdAndPlanIdAndQuesId(String studentId, String planId, String quesId);

	Long countByStudentIdAndPlanIdAndKnowId(String studentId, String planId, String knowId);
}
